V2EX  ›  英汉词典
Enqueued related words: Circular Buffer, Lock-free, Producer-consumer

Ring Buffer

定义 Definition

环形缓冲区:一种把一段固定大小的存储空间首尾相接来使用的数据结构/缓冲机制;写指针到末尾后会回到开头继续写,常用于流式数据、日志、音视频、设备驱动、生产者-消费者队列等场景。(也常称 circular buffer。)

发音 Pronunciation (IPA)

/ˈrɪŋ ˌbʌfər/

例句 Examples

The audio driver stores samples in a ring buffer.
音频驱动把采样数据存放在环形缓冲区里。

To avoid dropping events under heavy load, the system uses a lock-free ring buffer shared by producer and consumer threads.
为避免高负载下丢事件,系统使用由生产者与消费者线程共享的无锁环形缓冲区。

词源 Etymology

ring 表示“环、圈”,强调“首尾相接、循环”;buffer 源自“缓冲、暂存”,用于吸收速度差或突发数据。合起来即“以环状方式循环使用的暂存区”。在计算机领域,这一说法随着早期 I/O 与实时数据处理需求而普及。

相关词 Related Words

文献与作品 Notable Works

  • The Linux Programming Interface(Michael Kerrisk)
  • Operating Systems: Three Easy Pieces(Remzi H. Arpaci-Dusseau & Andrea C. Arpaci-Dusseau)
  • Linux Device Drivers(Jonathan Corbet, Alessandro Rubini, Greg Kroah-Hartman)
  • Computer Systems: A Programmer’s Perspective(Randal E. Bryant & David R. O’Hallaron)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   735 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 20:34 · PVG 04:34 · LAX 12:34 · JFK 15:34
♥ Do have faith in what you're doing.